package scr;

public class Example21 {
    public static void main(String[] args) {
        int s1 = add(1,2);
        int s2 = add(1,2,3);
        double s3 = add(1.2,1.3);
    }

    public static int add(int x, int y){
        return x+y;
    }

    public static  int add(int x,int y,int z){
        return x+y+z;
    }

    public static double add(double x,double y){
        return x+y;
    }
}


